package org.example.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "alibaba.cloud")  // 绑定前缀为 alibaba.cloud 的配置
public class AlibabaCloudConfig {
    private String accessKeyId;
    private String accessKeySecret;
//    private String region;
    private String endpoint;
    private String instanceName;

    // 必须有 getter/setter 方法
    public String getAccessKeyId() { return accessKeyId; }
    public void setAccessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; }

    public String getAccessKeySecret() { return accessKeySecret; }
    public void setAccessKeySecret(String accessKeySecret) { this.accessKeySecret = accessKeySecret; }

//    public String getRegion() { return region; }
//    public void setRegion(String region) { this.region = region; }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getInstanceName() {
        return instanceName;
    }

    public void setInstanceName(String instanceName) {
        this.instanceName = instanceName;
    }
}

